cd threads; gmake depend
gmake[1]: Entering directory `/usr/local/lab/2/code-linux/nachos-3.4/code/threads'
g++ -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -M ../threads/main.cc ../threads/list.cc ../threads/scheduler.cc ../threads/synch.cc ../threads/synchlist.cc ../threads/system.cc ../threads/thread.cc ../threads/utility.cc ../threads/threadtest.cc ../machine/interrupt.cc ../machine/sysdep.cc ../machine/stats.cc ../machine/timer.cc > makedep
echo '/^# DO NOT DELETE THIS LINE/+2,$d' >eddep
echo '$r makedep' >>eddep
echo 'w' >>eddep
ed - Makefile < eddep
rm eddep makedep 
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
gmake[1]: Leaving directory `/usr/local/lab/2/code-linux/nachos-3.4/code/threads'
cd threads; gmake nachos
gmake[1]: Entering directory `/usr/local/lab/2/code-linux/nachos-3.4/code/threads'
g++ -g -Wall -Wshadow -strings -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED  -c ../machine/interrupt.cc
gmake[1]: Leaving directory `/usr/local/lab/2/code-linux/nachos-3.4/code/threads'
